﻿using System.Configuration;

namespace Job.Core.Module
{
    /// <summary>
    /// 以编程的方式访问 moduleProvider 配制节(无法继承此类)。
    /// </summary>
    public sealed class ModuleProviderConfigSection : ConfigurationSection
    {
        #region Properties

        private const string providers = "providers";

        /// <summary>
        /// 获取 providers 内的集合。
        /// </summary>
        [ConfigurationProperty(providers)]
        public ProviderSettingsCollection Providers
        {
            get { return base[providers] as ProviderSettingsCollection; }
        }

        #endregion
        
    }
}